package behavior.memento;

import lombok.Data;

/**
 * 游戏用户
 */
@Data
public class GameRole {

    private Integer vit;
    private Integer atk;
    private Integer def;

    @Override
    public String toString() {
        return "GameRole 状态展示: {" +
                "vit=" + vit +
                ", atk=" + atk +
                ", def=" + def +
                '}';
    }

    /**
     * 初始状态
     */
    public static GameRole getInitState() {
        GameRole gameRole = new GameRole();
        gameRole.setVit(100);
        gameRole.setAtk(100);
        gameRole.setDef(100);
        return gameRole;
    }

}
